-- GENERATED SPELL FOR [Rabid Cannibal] --


function spell0_29722(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(30639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29722', 15000, 1)
end

function Sorts_29722(pUnit, Event)
local choix_sorts_29722 = math.random(0, 0)
if choix_sorts_29722 == 0 then
pUnit:RegisterEvent('spell0_29722', 1, 1)
end
end

function mob29722_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29722', math.random(1500, 3000), 1)
end

function mob29722_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29722_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29722_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29722, 1, 'mob29722_Action')
RegisterUnitEvent(29722, 2, 'mob29722_Leave')
RegisterUnitEvent(29722, 3, 'mob29722_Kill')
RegisterUnitEvent(29722, 4, 'mob29722_Die')
